package com.bootdo.system.controller;

import com.bootdo.common.utils.PageUtils;
import com.bootdo.system.service.DyPayOrderService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @create 2021-03-06 16-02
 */
@Api("电影订单")
@Controller
@RequestMapping("/dyPay")
public class DyPayOrderController {

    @Autowired
    private DyPayOrderService payOrderService;

    @RequestMapping("/dyPay")
    public String dyOrder(){
        return "system/dyPay/dyPay";
    }

    @GetMapping("/list")
    @ResponseBody
    public PageUtils selectDyPayList(@RequestParam Map map){
        return payOrderService.selectPayOrder(map);
    }

}
